package com.example.rpapp.acceptprize.query;


import com.example.rpapp.assembler.AcceptPrizeAssembler;
import com.example.rpclient.dto.data.AcceptPrizeVo;
import com.example.rpdomain.acceptprize.AcceptPrizeEntity;
import com.example.rpdomain.gateway.AcceptPrizeGateway;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Component
@Slf4j
@AllArgsConstructor
public class AcceptPrizeOneExe {

    private final AcceptPrizeGateway acceptPrizeGateway;


    public AcceptPrizeVo execute(Long recordId) {
        AcceptPrizeEntity entity = acceptPrizeGateway.one(recordId);

        return AcceptPrizeAssembler.toAcceptPrizeVO(entity);
    }
}
